package com.woniuxy.com.demo.Util;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * description: JedisData <br>
 * date: 2022/1/4 7:02 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
@Component
public class JedisData implements InitializingBean {
    @Value("${jedis.host}")
    private String host;

    public static String HOST;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        HOST = this.host;
    }
}
